package com.cskaoyan.catmall.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.multipart.MultipartResolver;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 创建日期: 2022-01-07-16-43
 * author : WQW
 * description: web相关配置
 */
@Configuration
public class WebConfiguration implements WebMvcConfigurer {


    /**
     * @description 文件上传组件注册
     * @author WQW
     * @date 2022/1/7 17:17
     * @param
     * @return org.springframework.web.multipart.MultipartResolver

    @Bean
    public MultipartResolver multipartResolver(){
        return new CommonsMultipartResolver();
    }*/

}
